package cn.pink.core.support.observer;

import cn.pink.core.MsgParamBase;

/**
 * 具体主题
 * 事件主题 发布事件
 * @Author: pink
 * @Date: 2022/6/30 11:15
 */
public class MsgSubject extends Subject{
    /** 实例化单例 */
    public static final MsgSubject instance = new MsgSubject();

    /**
     * 发布
     */
    public static void fire(int msgId, MsgParamBase param) {
        instance.notice(msgId, null, param);
    }
}
